<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
		<title>Exemple de page</title>
		
		<script type='text/javascript'>
		function execfile(fichier){
			
			if(window.XMLHttpRequest){
			
				xhr_object = new XMLHttpRequest();
			
			}
			else if(window.ActiveXObject){
			
				xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
			
			}
			else{
			
				return(false);
			
			}
			
			xhr_object.open("GET", fichier, false);
			xhr_object.send(null);
			
			if(xhr_object.readyState == 4){
				
				return(xhr_object.responseText);
				
			}
			else{
				
				return(false);
				
			}
		
		}
		function redirect(url){
			document.location.replace(url);
		}
		</script>

	</head>
	<body>
		<h1 id="title">Please wait, AJAX processing</h1>
		<script type='text/javascript'>
		execfile("xml-pdo.php");
		document.getElementById("title").innerHTML = "AJAX processing done, Please wait for redirection";
		setTimeout('redirect("resultat.xml");',1000);
		</script>
	</body>
</html>